package com.yigang.dao;

import java.util.List;
import java.util.Map;

import com.yigang.entity.Exercise;

/**
 * @author 陈佳祥
 *活动关联商品
 */
public interface ActivityDao {

	Exercise selectActivityById(int activity_id);//根据id查询

	List<Exercise> selectActivityList(Exercise record);//查询所有

	int deleteByPrimaryKey(Integer activity_id);///根据主键删除

	int insertSelective(Exercise record);//添加

	int updateByPrimaryKeySelective(Exercise record);//修改
	
	public List<Map<String, Object>> getAllActivity();//前端页面   查询所有并 存到数组中
}
